#!/usr/bin/python
#coding: utf-8

################################
# file: models.py              #
# function: Library            #
# author: xsseroot@gmail.com   #
# time: 2014-9-3 16:03         #
################################

import re

#####################
# Column model class
#####################
class Column:
	"""
		Column model class.
	"""
	name =""                   # name
	savepath = "./pics/"      # save images path
	url = ""                   # url address
	host_name = ""             # domain
	host_port = ""             # port
	host_path = ""             # get path
	page_size = 35             # page size
	page_total = ""            # page total
	page_file = "index_\d.html"# page file
	page_total_regex = re.compile(u'<div class=\"ShowPage\"><span>.*?(\d+).*?</span>') #page total regex
	regex = {}                 # regex match image rule
	
	# init 
	def __init__(self,enName=None,urlAddr=None):
		self.en_name = enName
		self.url = urlAddr
		
	
if __name__ == "__main__":
	col = Column("qingliang","http://22mm.cc/qiangliang")
	print col.en_name,col.save_path,col.url